﻿@model Stock
<div class="main">
    @*@Html.Action("Banner")
    @Html.Action("Scroll")*@
    <div class="strdeprocess">
        <div class="line"></div>
        <ul>
            <li>
                <i class="cur">1</i>
                <span>申请操盘资金</span>
            </li>
            <li>
                <i>2</i>
                <span>支付保证金</span>
            </li>
            <li>
                <i>3</i>
                <span>操盘申请成功</span>
            </li>
            <li>
                <i>4</i>
                <span>开始投资股票</span>
            </li>
            <li class="last">
                <i>5</i>
                <span>盈利全归您</span>
            </li>

        </ul>
    </div>
    <div class="traderbox" id="traderbox1">
        <div class="content trade">
            <div class="left">
                <div class="firminput" id="FirmCapital">
                    <p class="i">您的投资本金</p>
                    <p class="ib">
                        @if (Model != null && Model.Principal > 0)
                        {
                            <input type="text" name="InputFirmCapital" id="InputFirmCapital" value="@Model.Principal" class="focusin" />
                        }
                        else
                        {
                            <input type="text" name="InputFirmCapital" id="InputFirmCapital" value="请输入投资本金，最少3千，最多500万" />
                        }元
                    </p>
                </div>
                <h3>
                    <span>您可以配资</span>
                </h3>
                <ul id="CapitalSelect" style="display: none">
                    <li>
                        <label><em>0</em>元</label>
                        <span>配资金额</span>
                        <p></p>
                    </li>
                    <li>
                        <label><em>0</em>元</label>
                        <span>配资金额</span>
                        <p></p>
                    </li>
                    <li>
                        <label><em>0</em>元</label>
                        <span>配资金额</span>
                        <p></p>
                    </li>
                    <li>
                        <label><em>0</em>元</label>
                        <span>配资金额</span>
                        <p></p>
                    </li>
                    <li class="cur">
                        <label><em>0</em>元</label>
                        <span>配资金额</span>
                        <p></p>
                    </li>
                </ul>
                <ul id="CapitalInfo" class="capitalinfo">
                    <li>请先输入您的投资本金<br />根据您的本金可配资1-5倍的资金</li>
                </ul>
            </div>
            <div class="right">
                <h3>
                    <span>确认操盘规则</span>
                    <a href="#">今日限制股»</a>
                </h3>
                <ul>
                    <li>
                        <b>操盘须知</b>
                        <span>投资沪深A股，<i id="noneLimit">仓位不限制</i><i id="limit" style="display:none">仓位有限制</i>，盈利全归您<br /><i id="limitinfo" style="color:#cd1818"></i></span>
                    </li>
                    <li>
                        <b>总操盘资金</b>
                        <span><em id="TotalTrade" class="orange">0</em>元</span>
                    </li>
                    <li>
                        <b>亏损警戒线</b>
                        <span><em id="LossWarLine" class="orange">0</em>元&nbsp;<i class="info-prompt"></i></span>
                    </li>
                    <li>
                        <b>亏损平仓线</b>
                        <span><em id="LossOpenLine" class="red">0</em>元&nbsp;<i class="info-prompt"></i></span>
                    </li>
                    <li>
                        <b>资金使用期限</b>
                        <span>
                            <select id="Cycle">
                                <option value="1" selected="selected">1个月</option>
                                <option value="2">2个月</option>
                                <option value="3">3个月</option>
                                <option value="4">4个月</option>
                                <option value="5">5个月</option>
                                <option value="6">6个月</option>
                            </select>&nbsp;<i class="info-prompt"></i>
                        </span>
                    </li>
                    <li>
                        <b>借款月利率</b>
                        <span><i id="LoanMoon" class="f20">0</i>分 / 每月&nbsp;<i class="info-prompt"></i>&nbsp;&nbsp;借款多、期限长、越优惠</span>
                    </li>
                    <li>
                        <b>开始交易时间</b>
                        <span>
                            <label for="tday">
                                <input type="radio" name="StartTime" checked="checked" id="tday" value="0" />今天
                            </label>
                            <label for="NextTrader">
                                <input type="radio" name="StartTime"  id="NextTrader" value="1" />下个交易日
                            </label>
                        </span>
                    </li>
                </ul>
            </div>
            <div class="clearfix"></div>
            <p>如您不清楚规则，或有其他疑问，请联系客服：4008-270-866</p>
            <p>
                <label><input id="agree" type="checkbox" checked="checked">我已阅读并同意</label>
                <a class="blue" target="_blank" href="#">《天天赢合作操盘协议》</a>
            </p>
            <p>
                <input type="button" class="button red" value="我要操盘" id="WillStock" />
            </p>
        </div>
    </div>
    @{Html.RenderPartial("Info");}
</div>
<script type="text/javascript">
    $(function () {
        tradewin.Init(@((Model!=null && Model.Principal>0)?Model.Principal:0),@((Model != null && Model.MatchEndowment > 0) ? Model.MatchEndowment : 0));
    });
</script>